package cn.yto.wdgj.wdgjgptdigitaltool.controller;

import cn.yto.response.DataResult;
import cn.yto.wdgj.wdgjgptdigitaltool.entity.dto.request.GptIntent;
import cn.yto.wdgj.wdgjgptdigitaltool.entity.dto.response.GptIntentResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


@Slf4j
@RestController
@RequestMapping(value = "/gpt")
@Api(value = "获取意图名称", tags = {"获取意图名称"})
public class GptIntentController {
    @GetMapping("/intents")
    @ApiOperation(value = "获取意图名称", httpMethod = "GET", notes = "获取意图名称")
    public DataResult<GptIntentResponse> gptIntent(){
        GptIntentResponse gptIntentResponse = new GptIntentResponse();
        List<GptIntent> intents = Arrays.asList(
                new GptIntent("走件", "走件", "WDGJ_TRACK"),
                new GptIntent("查重", "查重","WDGJ_WEIGHT"),
                new GptIntent( "取消拦截","取消拦截","RASA_DEFAULT"),
                new GptIntent("改电话", "改电话","RASA_DEFAULT"),
                new GptIntent("拦截", "拦截","RASA_DEFAULT"),
                new GptIntent("更址-有卡片", "更址-有卡片", "CARD_FACTORY"),
                new GptIntent("更址-无卡片", "更址-无卡片","RASA_DEFAULT"),
                new GptIntent("数字化工具", "数字化工具","RASA_ROOT_CAUSE_ANALYSIS"),
                new GptIntent("客服工作台", "客服工作台","CHECK_WORKBENCH"),
                new GptIntent("残单速查", "残单速查", "QUICK_INCOMPLETE"),
                new GptIntent("打开菜单", "打开菜单", "OPEN_MENU"),
                new GptIntent("IT支持", "IT支持", "IT_SUPPORT"),
                new GptIntent("面单充值撤销", "面单充值撤销", "EXPRESS_TOP_UP"),
                new GptIntent("签收状态", "签收状态","ALREADY_SIGNED"),
                new GptIntent("仲裁-双面单", "仲裁-双面单","REPORT_ARBITRATION_MULTI_EXPRESS"),
                new GptIntent("仲裁-子母件", "仲裁-子母件","REPORT_ARBITRATION_SUB_MASTER_EXPRESS"),
                new GptIntent("仲裁-非圆通包装", "仲裁-非圆通包装","REPORT_ARBITRATION_NOT_YTO_PACKAGE"),
                new GptIntent("仲裁-中转延误","仲裁-中转延误", "CARD_FACTORY"),
                new GptIntent("仲裁-退件延误","仲裁-退件延误", "CARD_FACTORY"),
                new GptIntent("仲裁-派件延误","仲裁-派件延误",  "CARD_FACTORY"),
                new GptIntent("仲裁-私自退件", "仲裁-私自退件", "CARD_FACTORY"),
                new GptIntent("仲裁-谎报问题件加延误","仲裁-谎报问题件加延误", "CARD_FACTORY"),
                new GptIntent("上报破损件", "上报破损件", "REPORT_DAMAGE"),
                new GptIntent("话务质检", "话务质检", "TEL_QUALITY"),
                new GptIntent("弃件", "弃件", "REPORT_DISCARD"),
                new GptIntent("上报催件", "上报催件", "REPORT_URGE"),
                new GptIntent("取件码", "取件码", "REPEAT_GET_CODE"),
                new GptIntent("网络管委会", "网络管委会", "RASA_DEFAULT"),
                new GptIntent("虚假签收决策分析","虚假签收决策分析", "FALSE_SIGN_ANALYSIS"),
                new GptIntent("GPT使用情况", "GPT使用情况","GPT_USAGE")
        );
        gptIntentResponse.setIntents(intents);
        return DataResult.ok(gptIntentResponse);
    }
}
